#define _CRT SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<stdbool.h>
#include<iostream>
using namespace std;

int main()
{
        string s;
        cin >> s;
        int num = 0, abc = 0, sign = 0, len = 0, sum = 0;
        len = s.length();
        if (len >= 8)
            sum += 25;
        else if (len >= 5)
            sum += 10;
        else
            sum += 5;
        int flag1 = 0, flag2 = 0;
        for (int i = 0; i < len; i++)
        {
            if (s[i] >= 'a' && s[i] <= 'z')
            {
                flag1 = 1;
                abc++;
            }
            else if (s[i] >= 'A' && s[i] <= 'Z')
            {
                flag2 = 1;
                abc++;
            }
            else if (s[i] >= '0' && s[i] <= '9')
            {
                num++;
            }
            else {
                sign++;
            }
        }
        if (sign && num && abc)
        {
            if (flag1 == 1 && flag2 == 1)
            {
                sum += 5;
            }
            else {
                sum += 3;
            }
        }
        else if (num && abc)
        {
            sum += 2;
        }
        if (abc)
        {
            if (flag1 == 1 && flag2 == 1)
                sum += 20;
            else
                sum += 10;
        }
        if (num == 1)
        {
            sum += 10;
        }
        else if (num > 1)
        {
            sum += 20;
        }
        if (sign == 1)
        {
            sum += 10;
        }
        else if (sign > 1)
        {
            sum += 25;
        }
        if (sum >= 90)
        {
            cout << "VERY_SECURE";
        }
        else if (sum >= 80)
        {
            cout << "SECURE";
        }
        else if (sum >= 70)
        {
            cout << "VERY_STRONG";
        }
        else if (sum >= 60)
        {
            cout << "STRONG";
        }
        else if (sum >= 50)
        {
            cout << "AVERAGE";
        }
        else if (sum >= 25)
        {
            cout << "WEAK";
        }
        else {
            cout << "VERY_WEAK";
        }
}